@use "blog.variable.module.scss" as blog;

.blog-tools {
  position: absolute;

  .book-mark-link {
    border-bottom: none;
    display: block;
    position: fixed;
    top: -2px;
    left: 20px;
    color: #222;
    font-size: 26px;
    transition: .3s;
    z-index: 2;
  }

  .github-corner {
    border-bottom: none;
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    color: #222;
    font-size: 26px;
    transition: .3s;
    z-index: 2;
  }

  .github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out
  }

  @keyframes octocat-wave {
    0%, 100% {
      transform: rotate(0)
    }
    20%, 60% {
      transform: rotate(-25deg)
    }
    40%, 80% {
      transform: rotate(10deg)
    }
  }

  @media (max-width: 500px) {
    .github-corner:hover .octo-arm {
      animation: none
    }
    .github-corner .octo-arm {
      animation: octocat-wave 560ms ease-in-out
    }
  }

  #particles {
    position: absolute;
    z-index: 0;
  }

  .heart {
    position: fixed;
    opacity: 1;
    scale: 1;
    width: 10px;
    height: 10px;
    background: red;
    transform: rotate(45deg);
    z-index: 2;
  }

  .heart:after, .heart:before {
    content: "";
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: 50%;
    position: absolute;
  }

  .heart:after {
    top: -5px;
  }

  .heart:before {
    left: -5px;
  }

  @keyframes move {
    100% {
      transform: translateY(-20px) rotate(45deg);
      opacity: 0;
    }
  }

  .blog-progress {
    /* Positioning */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
    color: blog.$theme-color;
    z-index: 3;
  }

  .blog-progress::-webkit-progress-bar {
    background-color: transparent;
  }

  .blog-progress::-webkit-progress-value {
    background-color: blog.$theme-color;
  }

  .blog-progress::-moz-progress-bar {
    background-color: blog.$theme-color;
  }

  .theme-button {
    position: fixed;
    top: -2px;
    left: 50px;
    z-index: 10;
  }
}
